<?php
function loadView($v = array(), $data = null)
{
    if($data) extract($data);
    if(is_array($v))
    {
        foreach ($v as $i)
        {
            include BASE_DIR. '\\views\\' . $i . '.php';
        }
    }
    else
    {
        include BASE_DIR . '\\views\\' . $v . '.php';
    }
}
?>